#!/usr/bin/env node

var Radio = require('./06-radio.js');

var station = {
  freq:'106.7',
  name:'music radio'
};

var radio = new Radio(station);

radio.on('open',(station)=>{
  console.log('"%s" FM %s opened',station.name, station.freq);
  console.log('baomihua');
});
//radio.on('open',(station)=>{
//  console.log('hello:',station);
//  console.log('\neventNames:',radio.eventName());
//  console.log('\n open listeners:',radio.listeners('open'));
//});
radio.on('stop',(station)=>{
  console.log('"%s" FM %s closed',station.name,station.freq);
});



